package server;

import java.rmi.Naming;

import server.universe.UniverseFacade;
import server.universe.UniverseFacadeRemote;

public class Main {

	public static void main(String[] args) {
		try {
			java.rmi.registry.LocateRegistry.createRegistry(1099);
			UniverseFacadeRemote universeFacade = new UniverseFacade();
	
			String ipHouse = "192.168.1.12";
			String ipIfsic = "148.60.13.83";			
			String adresse = "rmi://"+ipIfsic+"/universe/";
			Naming.bind(adresse, universeFacade);
			System.out.println(adresse);
		}
		catch(Exception exception) {
			exception.printStackTrace();
		}
	}

}
